package org.jeecg.modules.UserIdentity.service.impl;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.UserIdentity.entity.SysUserIdentity;
import org.jeecg.modules.UserIdentity.mapper.SysUserIdentityMapper;
import org.jeecg.modules.UserIdentity.service.ISysUserIdentityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: sys_user_identity
 * @Author: jeecg-boot
 * @Date:   2023-09-04
 * @Version: V1.0
 */
@Service
public class SysUserIdentityServiceImpl extends ServiceImpl<SysUserIdentityMapper, SysUserIdentity> implements ISysUserIdentityService {
    @Autowired
    private SysUserIdentityMapper sysUserIdentityMapper;
    @Override
    public List<SysUserIdentity> getUserData(String userId) {
        return sysUserIdentityMapper.getUserData(userId);
    }

    @Override
    public int deleteUserIdentityByUserId(String userId) {
        return sysUserIdentityMapper.deleteUserIdentityByUserId(userId);
    }

    @Override
    public int deleteUserIdentityByUserIds(String[] userIds) {
        return sysUserIdentityMapper.deleteUserIdentityByUserIds(userIds);
    }
}
